<template>
	<view class="user" :class="[isDark?'dark':'', AppStyle]" :style="{'background-color':isDark?'#1c1c1c':'#f6f6f6','min-height':isDark?'100vh':'auto'}">
		<view class="header" :style="[{height:CustomBar + 'px'}]">
			<view class="cu-bar" :class="isDark?'dark':'bg-white'" :style="{'height': CustomBar + 'px','padding-top':StatusBar + 'px','background-color':isDark?'#1c1c1c':'#ffffff'}">
				<view class="action" @tap="back">
					<text class="cuIcon-back"></text>
				</view>
				<view class="content text-bold" :style="[{top:StatusBar + 'px'}]">
					{{$t('user.media.contactus')}}
				</view>
				<view class="action">
				</view>
			</view>
		</view>
		<view :style="[{padding:CustomBar + 13 + 'px 10px 0px 10px'}]"></view>
		<view class="cu-list menu">
			<view class="cu-item" @tap="toKf">
				<view class="content">
					<text class="cuIcon-friendfill  text-red"></text>
					<text>{{$t('user.media.officservice')}}</text>
				</view>
				<view class="action">
					<text class="cuIcon-right"></text>
				</view>
			</view>
			<view class="cu-item" @tap="toWeb">
				<view class="content">
					<text class="cuIcon-circlefill text-brown"></text>
					<text>{{$t('user.media.contactauditor')}}</text>
				</view>
				<view class="action">
					<text class="cuIcon-right"></text>
				</view>
			</view>
		</view>
	</view>
</template>
<script>
	import waves from '@/components/xxley-waves/waves.vue';
	import { localStorage } from '../../js_sdk/mp-storage/mp-storage/index.js'
	import darkModeMixin from '@/utils/darkModeMixin.js'
	var API = require('../../utils/api')
	var Net = require('../../utils/net')
	export default {
		mixins: [darkModeMixin],
		data() {
			return {
				StatusBar: this.StatusBar,
				CustomBar: this.CustomBar,
				NavBar:this.StatusBar +  this.CustomBar,
				AppStyle:this.$store.state.AppStyle,
				data:""
			}
		},
		onShow(){
			// #ifdef APP-PLUS
			plus.navigator.setStatusBarStyle("dark")
			// #endif
		},
		methods:{
			back(){
				uni.navigateBack({
					delta: 1
				});
			},
			toWeb(){
				var that = this;
				var url = that.$API.SPshenhe();
				// #ifdef APP-PLUS
				plus.runtime.openURL(url) 
				// #endif
				// #ifdef H5
				window.open(url)
				// #endif
			},
			toKf(){
				var that = this;
				var url = that.$API.SPkefu();
				// #ifdef APP-PLUS
				plus.runtime.openURL(url) 
				// #endif
				// #ifdef H5
				window.open(url)
				// #endif
			}
		},
	}
</script>

<style>
</style>
